<?php
class Member_yuexiaofeiModel extends Model {

	public function get_primary_key() {
		return $this->primary_key = 'id';
	}

	public function set($id, $data) {
		$id = intval($id);
		$data['site'] = App::get_site_id();
	    if ($id) {
	        $this->update($data, 'id=' . $id);
	        return $id;
	    }
	    $this->insert($data);
	    if ($this->get_insert_id()) return $this->get_insert_id();
	    return false;
	}
	
	
}